﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Alumnos.aspx.cs"
    Inherits="Alumnos_alumnos" Title="Untitled Page" %>

<%@ Register Src="../../Controles/TipoDocumento.ascx" TagName="TipoDocumento" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <table>
        <tr>
            <td>
                <fieldset>
                    <table>
                        <tr class="none">
                            <td class="input-caption" style="width: 100px">
                                IdAlumno</td>
                            <td>
                                <asp:TextBox ID="txtIdAlumno" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Apellido</td>
                            <td>
                                <asp:TextBox ID="txtApellido" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Nombre</td>
                            <td>
                                <asp:TextBox ID="txtNombre" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Domicilio</td>
                            <td>
                                <asp:TextBox ID="txtDomicilio" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Telefono</td>
                            <td>
                                <asp:TextBox ID="txtTelefono" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Email</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption">
                                Tipo Documento</td>
                            <td>
                                <uc1:TipoDocumento ID="TipoDocumento1" runat="server"></uc1:TipoDocumento>
                            </td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Numero Doc</td>
                            <td>
                                <asp:TextBox ID="txtNroDocumento" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr class="none">
                            <td class="input-caption" style="width: 100px">
                                IdTipoDoc</td>
                            <td>
                                <asp:TextBox ID="txtIdTipoDoc" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="input-caption" style="width: 100px">
                                Fecha Nacimiento</td>
                            <td>
                                <asp:TextBox ID="txtFechaNacimiento" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr class="none">
                            <td class="input-caption" style="width: 100px">
                                Activo</td>
                            <td>
                                <asp:TextBox ID="txtActivo" runat="server" CssClass="input-text"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan='2' style="height: 17px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan='2' class='barButtons'>
                                <asp:Button ID='cmdAccion' runat='server' CssClass='input-button' OnClick="cmdAccion_Click"
                                    Text="Nuevo" />
                                <asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar."
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        OnRowDeleting="GridView1_RowDeleting" 
        OnPageIndexChanged="GridView1_PageIndexChanged"
        OnPageIndexChanging="GridView1_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="IdAlumno" HeaderText="IdAlumno" ReadOnly="True" SortExpression="IdAlumno" />
            <asp:BoundField DataField="Apellido" HeaderText="Apellido" />
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                            ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/delete.gif" Text="Delete" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
